package com.hntxk.cqzd.flup.service;




import com.hntxk.core.framework.model.ResponseModel;
import com.hntxk.core.framework.model.ResultModel;
import com.hntxk.core.framework.service.IBaseService;
import com.hntxk.cqzd.flup.entity.FlupFile;
import com.hntxk.cqzd.flup.entity.FlupInfo;
import com.hntxk.cqzd.flup.model.FlupAndDiacModel;
import com.hntxk.cqzd.flup.model.FlupInfoAndModel;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.util.List;


/**
 * @Description: 我的文件管理接口<br>
 * @Project: SP <br>
 * @date 2019/6/3 10:02 <br>
 * @author <a href="huangbiquan@hotmail.com">Huang.Biquan</a>
 */
public interface FlupInfoService extends IBaseService<FlupInfo> {

    ResultModel<FlupInfoAndModel> insert(FlupInfoAndModel flupInfoAndModel, MultipartFile[] files) throws IOException;

    ResultModel<FlupInfoAndModel> update(FlupInfoAndModel flupInfoAndModel,MultipartFile[] files)throws IOException;


    ResultModel<FlupAndDiacModel> insert(List<FlupAndDiacModel> flupAndDiacModel) throws IOException;

    ResultModel<FlupAndDiacModel> update(List<FlupAndDiacModel> flupAndDiacModel)throws IOException;

    void delete(String ids,boolean isCalled);


    int countFileInfoById(FlupFile flupFile);

    List<FlupInfoAndModel> getByFkId(Long id);

    FlupInfoAndModel getById(Long id);

    ResponseModel getAllInfo(String param, String isValid);
}
